<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center huodongliebiao_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub huodongliebiao_fd0_0'>
          <view class='flex flex-wrap align-center huodongliebiao_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  huodongliebiao_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='huodongliebiao_fd0_0_c1_c0'>活动商品</text>
          </view>
          <view class='flex flex-wrap align-center justify-end huodongliebiao_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction align-stretch benben-flex-layout huodongliebiao_flex_1">
        <view class='flex flex-wrap align-center justify-between huodongliebiao_fd1_0'>
          <template v-for='(item,key0) in dataList'>
            <view class='flex flex-direction flex-wrap align-stretch huodongliebiao_fd1_0_c0' @tap.stop="handleJumpDiy"
              data-type="navigateTo" :data-url="`/pages/fl/shopDetail/shopDetail?id=${item.id}`" :key='key0'>
              <view class='flex flex-wrap align-center huodongliebiao_fd1_0_c0_c0'>
                <image class='huodongliebiao_fd1_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"511.png"'></image>
                <image class='huodongliebiao_fd1_0_c0_c0_c1' mode="aspectFill" :src='item.coverPic'
                  v-if="commoditype=='1'"></image>
                <image class='huodongliebiao_fd1_0_c0_c0_c1' mode="aspectFill" :src='item.coverPic'
                  v-if="commoditype=='2'"></image>
              </view>
              <text class='flex-sub huodongliebiao_fd1_0_c0_c1'>{{item.comdName}}</text>
              <view class='flex flex-direction align-stretch huodongliebiao_fd1_0_c0_c2'>
                <view class='flex flex-wrap align-center huodongliebiao_fd1_0_c0_c2_c0'>
                  <image class='huodongliebiao_fd1_0_c0_c2_c0_c0' mode="aspectFit" :src='STATIC_URL+"500.png"'></image>
                  <text class='huodongliebiao_fd1_0_c0_c2_c0_c1'>￥{{item.rentPrice}}/月</text>
                </view>
                <view class='flex flex-wrap align-center'>
                  <image class='huodongliebiao_fd1_0_c0_c2_c0_c0' mode="aspectFit" :src='STATIC_URL+"501.png"'></image>
                  <text class='huodongliebiao_fd1_0_c0_c2_c0_c1'>{{item.sellPrice}}</text>
                </view>
              </view>
              <view class='flex flex-wrap align-center justify-between huodongliebiao_fd1_0_c0_c3'>
                <text class='huodongliebiao_fd1_0_c0_c3_c0'>{{item.shopName || '暂无'}}</text>
                <view class='flex flex-wrap align-center'>
                  <text class='huodongliebiao_fd1_0_c0_c3_c0'>进店</text>
                  <text class='fu-iconfont2  huodongliebiao_fd1_0_c0_c3_c1_c1'>&#xe7f2;</text>
                </view>
              </view>
            </view>
          </template>
          <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
            :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
        </view>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';
  import {
    validate
  } from '@/common/utils/validate.js'

  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        "dataList": [],
        "commoditype": "1"
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.getListFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {
      this.getListFunc()
    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //积分商城-积分商品列表
      getListFunc() {
        this.minixPagingListsApi = global.apiUrls.qryShopCommod;
        this.pageingListApiMethod = 'get';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {
          typeNum: '1'
        }
        this.listData = [];
        this.dataList = this.listData;
        this.pagingListToggle();

      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F8F8F8;
    background-size: 100% auto;
  }

  .huodongliebiao_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .huodongliebiao_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .huodongliebiao_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .huodongliebiao_fd0_0_c0 {
    width: 120rpx;
  }

  .huodongliebiao_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .huodongliebiao_flex_1 {
    padding: 0rpx 24rpx 0rpx 24rpx;
  }

  .huodongliebiao_fd1_0_c0_c3_c1_c1 {
    font-size: 22rpx;
    color: var(--benbenFontColor1);
  }

  .huodongliebiao_fd1_0_c0_c3_c0 {
    color: var(--benbenFontColor1);
    font-size: 24rpx;
  }

  .huodongliebiao_fd1_0_c0_c3 {
    background: rgba(246, 246, 246, 1);
    padding: 6rpx;
    border-radius: 44rpx;
    background-size: 100% auto;
    width: 300rpx;
    margin: 12rpx auto 0rpx auto;
  }

  .huodongliebiao_fd1_0_c0_c2_c0_c1 {
    color: rgba(217, 50, 32, 1);
    font-weight: 600;
  }

  .huodongliebiao_fd1_0_c0_c2_c0_c0 {
    width: 32rpx;
    height: 32rpx;
    margin: 0rpx 10rpx 0rpx 0rpx;
  }

  .huodongliebiao_fd1_0_c0_c2_c0 {
    margin: 12rpx 0rpx 12rpx 0rpx;
  }

  .huodongliebiao_fd1_0_c0_c2 {
    margin: 0rpx 20rpx 0rpx 20rpx;
  }

  .huodongliebiao_fd1_0_c0_c1 {
    font-size: 28rpx;
    font-weight: 500;
    color: rgba(51, 51, 51, 1);
    margin: 0rpx 20rpx 0rpx 20rpx;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .huodongliebiao_fd1_0_c0_c0_c1 {
    width: 346rpx;
    height: 346rpx;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    margin: 0rpx 0rpx 24rpx 0rpx;
  }

  .huodongliebiao_fd1_0_c0_c0_c0 {
    width: 65rpx;
    height: 37rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    position: absolute;
    z-index: 2;
    right: 0rpx;
    top: 0rpx;
  }

  .huodongliebiao_fd1_0_c0_c0 {
    position: relative;
  }

  .huodongliebiao_fd1_0_c0 {
    background: #fff;
    background-size: 100% auto !important;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    padding: 0rpx 0rpx 22rpx 0rpx;
    margin: 0rpx 0rpx 8rpx 0rpx;
    width: 346rpx;
  }

  .huodongliebiao_fd1_0 {
    margin: 24rpx 0rpx 0rpx 0rpx;
  }
</style>
